import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/es/locale/lang/zh-cn'

const app = createApp(App)
app.component('GjssIndex', GjssIndex) //高级搜索

app.config.globalProperties.$zwkf = () => {
    ElMessage({
        message: '功能暂未开放',
        type: 'warning',
    })
    // ElMessage({
    //     dangerouslyUseHTMLString: true,
    //     message:
    //         '<div style="width: 400px;margin-bottom: 5px;color:#1D2129;font-size: 16px;font-weight: 500;">更换失败！</div>  <div style="color: #1D2129;font-size: 14px;font-weight: 400;">操作被撤销，更换失败</div> ',
    //     type: 'error',
    // })
}

app.use(router)
app.use(ElementPlus, {
    locale: zhCn,
})
app.mount('#app')
